<?php $this->load->view('_shared/passo_a_passo'); ?>

<div class="conteudo">
  <div class="container">
    <div class="row">

      <div class="col-lg-6 col-md-6">
        <h4 class="titulos-home">Estabelecimentos</h4>
          <div class="list-group">
            <?php
              foreach($empresas as $empresa){
            ?>
            <a href="<?php echo site_url('cardapio/empresa/'.$empresa->cod_empresa_auto.'/'.url_title($empresa->nome_fantasia, '_', TRUE)); ?>" class="list-group-item">
              <?php echo $empresa->nome_fantasia; ?>
              <span class="pull-right glyphicon glyphicon-chevron-right"></span>
            </a>
            <?php
              }
            ?>
            <a href="<?php echo site_url('/home/estabelecimentos'); ?>" class="list-group-item list-group-item-todos">Todos estabelecimentos</a>
          </div>        
      </div>

      <div class="col-lg-6  col-md-6">
        <h4 class="titulos-home">Segmentos</h4>
          <div class="list-group">
            <?php
              foreach($segmentos as $segmento){
            ?>
            <a href="<?php echo site_url('home/segmentos/'.$segmento->cod_segmento_auto.'/'.url_title($segmento->desc_segmento,'_',TRUE)); ?>" class="list-group-item">
            <span class="badge pull-right"><?php echo $segmento->qtde_empresas; ?></span>
              <?php echo $segmento->desc_segmento; ?>
            </a>
            <?php
              }
            ?>
            <a href="<?php echo site_url('/home/segmentos'); ?>" class="list-group-item list-group-item-todos">Todos segmentos</a>
          </div>
      </div>
    </div>
  </div>
</div>